Starting from microcanonical basis with the principle of equal a priori probability, it is found that, besides ordinary Boltzmann-Gibbs theory with the exponential distribution, a theory describing systems with power-law distributions can also be derived.